height = float(input("请输入您的身高（单位: m）："))
weight = float(input("请输入您的体重（单位: kg）："))

bmi = weight / (height ** 2)

if bmi < 18.5:
    print("您的BMI指数为", bmi, "过轻")
elif bmi >= 18.5 and bmi < 25:
    print("您的BMI指数为", bmi, "正常")
elif bmi >= 25 and bmi < 28:
    print("您的BMI指数为", bmi, "过重")
elif bmi >= 28 and bmi < 32:
    print("您的BMI指数为", bmi, "肥胖")
else:
    print("您的BMI指数为", bmi, "严重肥胖")
